package com.shigu.validation.tags;

import com.shigu.validation.impl.TelephoneValidationImpl;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = TelephoneValidationImpl.class)////此处指定了注解的实现类为ListNotHasNullValidatorImpl
public @interface Telephone {
    String message() default "手机号码格式不正确";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
